home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / OS / FWToolbx / Include / SLWindow.h < prev   
Encoding:
Text File  |  1996-08-16  |  4.0 KB  |  138 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                SLWindow.h
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef SLWINDOW_H
  11. #define SLWINDOW_H
  12.  
  13. #ifndef FWODTYPS_H
  14. #include "FWODTyps.h"
  15. #endif
  16.  
  17. #ifndef FWWINDOW_K
  18. #include "FWWindow.k"
  19. #endif
  20.  
  21. #ifndef SLPTRECT_H
  22. #include "SLPtRect.h"
  23. #endif
  24.  
  25. #ifndef SLSTRREP_H
  26. #include "SLStrRep.h"
  27. #endif
  28.  
  29. // ----- OpenDoc Includes -----
  30.  
  31. #ifndef SOM_ODWindow_xh
  32. #include <Window.xh>
  33. #endif
  34.  
  35. //========================================================================================
  36. // External procedure definitions
  37. //========================================================================================
  38.  
  39. // Export or Import functions for CFM-68K [sfu]
  40.  
  41. #if defined(FW_ODFLIB_IMPORT)
  42. #pragma import on
  43. #elif defined(FW_ODFLIB)
  44. #pragma export on
  45. #endif
  46.  
  47. FW_EXTERN_C_BEGIN
  48.  
  49. //----------------------------------------------------------------------------------------
  50. //    Public API
  51. //
  52. void SL_API                    FW_PositionModalDialog(ODPlatformWindow platformWindow, 
  53.                                 FW_PlatformError* error);
  54.  
  55. FW_Boolean SL_API            FW_FitWindowToScreen(ODPlatformWindow platformWindow, 
  56.                                 FW_PlatformError* error);
  57.  
  58. void SL_API                    FW_SetWindowSize(ODPlatformWindow platformWindow,
  59.                                 const FW_SPoint& interiorSize,
  60.                                 FW_PlatformError* error);
  61. void SL_API                    FW_SetWindowPosition(ODPlatformWindow platformWindow,
  62.                                 const FW_SPoint& newPosition, 
  63.                                 FW_PlatformError* error);
  64.  
  65. void SL_API                    FW_GetWindowSize(ODPlatformWindow platformWindow,
  66.                                 FW_SPoint& interiorSize, 
  67.                                 FW_PlatformError* error);
  68. void SL_API                    FW_GetWindowPosition(ODPlatformWindow platformWindow,
  69.                                 FW_SPoint& position, 
  70.                                 FW_PlatformError* error);
  71.  
  72. void SL_API                    FW_SetWindowTitle(ODPlatformWindow platformWindow, 
  73.                                 FW_HString windowTiltle, 
  74.                                 FW_PlatformError* error);                                
  75. void SL_API                    FW_GetWindowTitle(ODPlatformWindow platformWindow, 
  76.                                 FW_HString* windowTiltle, 
  77.                                 FW_PlatformError* error);
  78.  
  79. void SL_API                    FW_GetWindowBorderSize(ODPlatformWindow platformWindow,
  80.                                 FW_SRect& borderSize,
  81.                                 FW_PlatformError* error);
  82.     
  83. FW_PlatformError SL_API        FW_ScreenToWindow(ODPlatformWindow platformWindow,
  84.                                 FW_SPoint* points, 
  85.                                 unsigned short nbPoint);                                
  86. FW_PlatformError SL_API        FW_WindowToScreen(ODPlatformWindow platformWindow,
  87.                                 FW_SPoint* points, 
  88.                                 unsigned short nbPoint);
  89.                                 
  90. //----------------------------------------------------------------------------------------
  91. //    Mac Specific API
  92. //
  93. #ifdef FW_BUILD_MAC    
  94. // ----- Mac Window resizing tracking -----
  95. FW_Boolean SL_API            FW_PrivMacTrackResizeWindow(ODPlatformWindow platformWindow, 
  96.                                 const FW_SRect& growLimits, 
  97.                                 FW_SPlatformPoint startPoint, 
  98.                                 FW_PlatformError* error);
  99.                                 
  100. void SL_API                    FW_PrivMacDoZoom(ODPlatformWindow platformWindow, 
  101.                                 const FW_SPoint& zoomedSize, 
  102.                                 const FW_SRect& borderSize,
  103.                                 const FW_SRect& screenRect,
  104.                                 unsigned long message, 
  105.                                 FW_PlatformError* error);
  106.                                 
  107. // ----- Mac Window creation -----
  108. ODPlatformWindow SL_API        FW_PrivMacCreatePlatformWindow(Environment* ev, 
  109.                                 Str255 windowTitle,
  110.                                 const FW_SPoint& interiorSize,
  111.                                 const FW_SPoint& position,
  112.                                 unsigned short procID,
  113.                                 FW_Boolean hasCloseBox,
  114.                                 long refCon);
  115.  
  116. unsigned short SL_API         FW_PrivMacStyleToProcId(FW_WindowStyle style);
  117. #endif
  118.  
  119. //----------------------------------------------------------------------------------------
  120. //    Windows Specific API
  121. //
  122. #ifdef FW_BUILD_WIN
  123. DWORD SL_API                FW_PrivWindStyleToWindowsFlags(FW_WindowStyle style);
  124. void  SL_API                FW_PrivWindFixSystemMenu(FW_WindowStyle style);
  125. #endif
  126.  
  127. FW_EXTERN_C_END
  128.  
  129. // For CFM-68K [sfu]
  130.  
  131. #if defined(FW_ODFLIB_IMPORT)
  132. #pragma import off
  133. #elif defined(FW_ODFLIB)
  134. #pragma export off
  135. #endif
  136.  
  137. #endif
  138.